﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CCM.CronTaskScheduler {
    public class StandardTaskExecutor : ITaskExecutor {


        public bool RunTask(Type taskType, Dictionary<string, object> customData = null) {
            var task = Activator.CreateInstance(taskType) as StandardTask;
            return task.Execute(customData);
        }
    }
}
